const getters = {
  userInfo: state => {
    return {
      openid: state.userInfo.openid,
      infoCollected: state.userInfo.infoCollected,
      userLiked: state.userInfo.userLiked,
      userProfile: state.userInfo.userProfile
    }
  },
  city: state => { 
    return { 
      appid: state.city.appid, 
      qrcode: state.city.qrcode,
      serviceQrcode: state.city.serviceQrcode,
      id: state.city.id,
      name: state.city.name,
      image: state.city.image,
    } 
  },
  errorLogs: state => state.errorLog.logs,
  qiniuDomain: state => state.app.qiniu.domain,
  qiniuToken: state => state.app.qiniu.token,
  pageLoading: state => state.app.pageLoading,
  device: state => state.app.device,
  iosJsUrl: state => state.app.iosJsUrl,
  qrcode: state => state.app.qrcode,
  viewBoxScrollTop: state => state.app.viewBoxScrollTop
}

export default getters
